<table class="table">
    <tr>
        <td>ID</td>
        <td>Akses</td>
        <td>Nama</td>
        <td>Email</td>
        <td>Phone</td>
        <td>Kelas</td>
        <td>Tahun Masuk</td>
        <td>Tempat lahir</td>
        <td>Jenis Kelamin</td>
        <td>Foto</td>
    </tr>
    <?php foreach ($usr as $user) : ?>
        <tr>
            <td><?php echo $user->id; ?></td>
            <td><?php echo $user->akses;?></td>
            <td><?php echo $user->nama;?></td>
            <td><?php echo $user->email;?></td>
            <td><?php echo $user->phone;?></td>
            <td><?php echo $user->kelas;?></td>
            <td><?php echo $user->thn;?></td>
            <td><?php echo $user->tmpt_lahir;?></td>
            <td><?php echo $user->tgl_lahir;?></td>
            <td><?php echo $user->sex;?></td>
            <td><?php echo $user->foto;?></td>
            <td><a href="<?php echo site_url() ?>/admin/ubah_user/<?php echo $user->id; ?>">Ubah</a> || <a href="<?php echo site_url() ?>/admin/del_user/<?php echo $user->id; ?>" onclick="return confirm('Apakah sudah benar benar yakin untuk menghapus data ?')">Hapus</a> </td>
        </tr>
    <?php endforeach; ?>
</table>